<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class TestQuestionResource extends JsonResource
{
    public function toArray($request)
    {
    	$data = $this->resource;
    	dd($data->id);
        return [
	        'question' 			=> (string)$data->question,
	        'question_option'           => (string)$data->question_option,
        ];
    }
}
